package cn.uce.common.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * 呼叫常用常量类
 */
public final class CcConstants {

    /**
     * 消息队列topic
     * */
    public static final String CS_ROCKET_MQ_PROCESS_INSTANCE_START = "processStart";
    public static final String CS_ROCKET_MQ_TASK_COMPLETE = "taskComplete";

    /**
     * 顶部菜单编码
     */
    public static final String TOP_MENU_OPS_CODE ="cs-ops";

    public static final String TOP_MENU_PORTAL_CODE ="cs-portal";

    /**
     * 常用分隔符
     */
    public static final String STRING_SPLIT_COMMAS = ",";

    /**
     * 草稿和提交状态
     */
    public static final int SUBMITE_STATUS_SAVE    = -1;
    public static final int SUBMITE_STATUS_SUBMITE = 0;

    /**
     * @Author: chenqinglong
     * @Description: 角色编码常量
     * @Date: 2018/5/8 20:00
     * @Param:
     * @return:
     */

    /**
     * 超级管理员角色
     * */
    public static final String ROLE_CODE_SUPERADMIN ="superAdmin";
    /**
     * 普通用户角色
     * */
    public static final String ROLE_CODE_STAFF ="staff";
    /**
     * 系统管理员角色
     * */
    public static final String ROLE_CODE_SYSADMIN ="SYS_ADMIN";

    /**
     * 呼叫中心客服角色
     * */
    public static final String ROLE_CODE_CCCS ="cccs";
    /**
     * 呼叫中心客服领导角色
     * */
    public static final String ROLE_CODE_CCCSL ="cccsl";

    /**
     * 呼叫中心客服角色
     * */
    public static final String ROLE_CODE_CC_CCCS ="CC_CCCS";
    /**
     * 呼叫中心客服领导角色
     * */
    public static final String ROLE_CODE_CC_CCCSL ="CC_CCCSL";

    /**
     *  流程记录状态
     *  **/
    //TODO:目前未确定 暂时定义
    /**
     *  未提交
     *  **/
    public static final int DICT_STATUS_PROCESS = -1;
    /**
     *  已提交
     *  **/
    public static final int DICT_STATUS_FINISH = 0;

    public static final int DICT_CUSTOMER_SETTLEMENT_RESULT_ON = 1;
    public static final int DICT_CUSTOMER_SETTLEMENT_RESULT_OFF = 0;

    /**流程定义key*/
    /**
     * 客户服务类工单流程定义key
     * */
    public static final String DIAGRAMS_CS_CUST_SER_ORDER = "CsCustSerOrder";
    /**
     * 问题件工单流程定义key
     * */
    public static final String DIAGRAMS_PROBLEM_ORDER_KEY  = "ProblemOrderProcess";
    /**
     *  删除签收问题件工单流程定义key
     */
    public static final String DIAGRAMS_PROBLEM_DELETE_KEY = "DeleteSignProcess";
    /**
     * 客户理赔工单流程定义key
     * */
    public static final String DIAGRAMS_CUSTOMER_SETTLEMENT_KEY = "CustomerSettlement";
    /**
     * 邮政投诉工单流程定义key
     * */
    public static final String DIAGRAMS_POSTAL_SERVICE_PROCESS_KEY = "postalServiceProcess";
    /**
     * 邮政申诉工单流程定义key
     */
    public static final String DIAGRAMS_POSTAL_APPEAL_PROCESS_KEY="postalAppealProcess";
    /**
     * 仲裁投诉工单流程定义key
     * */
    public static final String DIAGRAMS_CSWOARBITRATIONCOMPLAINTS_ORDER_KEY  = "csWoAcoCommRecorda";
    /**
     * 仲裁申诉工单流程定义key
     * */
    public static final String DIAGRAMS_ARBITRATIONAPPEAL_KEY  = "arbitAppealProcess";
    /**
     * 电商客诉工单流程定义key
     * */
    public static final String DIAGRAMS_CSWOECCOMPLAINTS_ORDER_KEY  = "ECComplaintProcess";
    /**
     * 电商申诉工单流程定义key
     * */
    public static final String DIAGRAMS_ORETAILERSAPPEAL_KEY  = "oretailersAppealProcess";

    /**
     * 拼多多工单流程定义key
     */
    public static final String DIAGRAMS_PDD_SERVICE_PROCESS_KEY="PddPostalServiceProcess";


    /**
     * 开始节点key
     * */
    public static final String DIAGRAMS_TASK_START = "startTask";

    /**
     * 邮政投诉任务节点key
     * 发起邮政投诉并指定还通知
     */
    public static final String DIAGRAMS_POSTAL_SERVICE_TASK_KEY_START = "postaltaskStart";

    /**
     * 客服工单任务节点key
     */
    /**
     * 工单责任方办理
     * */
    public static final String DIAGRAMS_CS_CUST_SER_ORDER_TASK_DUTY_DEAL = "dutyDeal";
    /**
     * 责任中心处理
     * */
    public static final String DIAGRAMS_CS_CUST_SER_ORDER_TASK_DUTY_CENTER_DEAL = "dutyCenterDeal";
    /**
     * 工单责任方办理定时器
     * */
    public static final String DIAGRAMS_CS_CUST_SER_ORDER_TASK_DUTY_DEAL_TIMER = "dutyDealTimer";

    /**
     * 责任中心超时定时器
     */
    public static final String DIAGRAMS_CS_CUST_SER_ORDER_TASK_DUTY_CENTER_DEAL_TIMER = "dutyCenterDealTimer";
    /**
     * 问题件流程
     */

    /**
     * 处理节点key
     * */
    public static final String PROBLEM_ORDER_TASK_HANDLE = "handle";
    /**
     * 等待节点
     * */
    public static final String PROBLEM_ORDER_TASK_WAIT = "wait";
    /**
     * 结束节点
     * */
    public static final String PROBLEM_ORDER_TASK_END = "end";

    /**
     * 总部客服处理key
     * */
    public static final String DELETE_TASK_HANDLE = "handle";
    /**
     * 总部领导处理key
     * */
    public static final String DELETE_TASK_MANAGER_HANDLE = "managerHandle";
    /**
     * 登记方处理节点key
     *  */
    public static final String DELETE_TASK_WAIT = "wait";


    /**
     * 客户理赔流程
     */
    public static final String CUSTOMER_SETTLEMENT_TASK_WEBSITE_HANDLE = "websitHandleTask";
    public static final String CUSTOMER_SETTLEMENT_TASK_CENTER_HANDLE = "centerHandleTask";
    public static final String CUSTOMER_SETTLEMENT_TASK_WEBSITE_TIMER = "websiteTimer";


    public static final String ARBITRATIONAPPEAL_TASK_HANDLE = "handle";
    public static final String ARBITRATIONAPPEAL_TASK_ENTER  = "enter";
    public static final String ARBITRATIONAPPEAL_TASK_WAIT = "wait";

    //电商客诉工单任务节点key
    //网点处理节点超时事件
    public static final String ECCOMPLAINT_PROCESS_TIMER_KEY_BT_ONE  = "boundarytimer1";
    //中心客服处理、核实回复节点超时事件
    public static final String ECCOMPLAINT_PROCESS_TIMER_KEY_BT_TWO  = "centerReplyBoundarytimer1";
    //中心核实回复节点超时事件
    public static final String ECCOMPLAINT_PROCESS_TIMER_KEY_BT_THREE  = "centerReplyBoundarytimer2";
    //二次定责节点超时事件
    public static final String ECCOMPLAINT_PROCESS_TIMER_KEY_BT_FOUR  = "centerReplyBoundarytimer3";
    /**
     * problemOrderProcess 默认值
     * */
    public static final String DURATION_PROCESS_HANDLE_TIME_OVER= "P0Y0M0DT0H5M0S";
    public static final String DURATION_PROCESS_HANDLE_AUTO_COMPLETE = "P0Y0M0DT0H20M0S";

    /**
     * appealOrderProcess 默认值
     * */
    public static final String DURATION_PROCESS_HANDLE_TIME_OVER_APPEAL= "P0Y0M3DT0H0M0S";

    //appeal 提交/处理
    public static final int APPEAL_HANDLE_SUBMIT = 1;
    public static final int APPEAL_HANDLE_SAVE = 0;

    /**-------------------------------------业务数据常量定义-------------------------------------------------*/

    /**---------------公共常量定义----------------------------------*/

    /**
     * 工单状态
     * */
    //草稿
    public static final int CS_WO_WORK_ORDER_STATUS_SAVE = -1;
    //待处理
    public static final int CS_WO_WORK_ORDER_STATUS_SUBMIT = 0;
    //处理中
    public static final int CS_WO_WORK_ORDER_STATUS_PROCESSING = 1;
    //已处理待结案
    public static final int CS_WO_WORK_ORDER_STATUS_HANDED = 2;
    //已结案
    public static final int CS_WO_WORK_ORDER_STATUS_CLOSE_CASE = 3;
    //已完成
    public static final int CS_WO_WORK_ORDER_STATUS_END = 4;

    /**申诉工单状态*/
    //草稿
    public static final int APPEAL_WORK_ORDER_STATUS_SAVE = -1;
    //待处理
    public static final int APPEAL_WORK_ORDER_STATUS_SUBMIT = 0;
    //逾期未处理
    public static final int APPEAL_WORK_ORDER_STATUS_OVERDUE = 1;
    //处理中
    public static final int APPEAL_WORK_ORDER_STATUS_PROCESSING  = 2;
    //已完成
    public static final int APPEAL_WORK_ORDER_STATUS_END = 3;

    /**邮政工单状态*/
    //待处理
    public static final int POSTAL_COMPLAINTS_STATUS_SUBMIT = 0;
    //处理中
    public static final int POSTAL_COMPLAINTS_STATUS_PROCESSING = 1;
    //已处理待结案
    public static final int POSTAL_COMPLAINTS_STATUS_HANDED = 2;
    //一次定则
    public static final int POSTAL_COMPLAINTS_STATUS_FIRST = 3;
    //二次定则
    public static final int POSTAL_COMPLAINTS_STATUS_SECONDES = 4;
    //已完成
    public static final int POSTAL_COMPLAINTS_STATUS_END = 5;


    /**-------------------数据字典-----------------------------------------------------------------------------------*/
    /**source状态*/
    //客服来电
    public static final int DICT_SOURCE_CUST_SER = 0;
    //邮政投诉
    public static final int DICT_SOURCE_POSTAL_COMPLAINTS = 1;
    //其他
    public static final int DICT_SOURCE_OTHER = 2;
    //手工创建问题件
    public static final int DICT_SOURCE_MANUAL = 3;
    //优速宝
    public static final int DICT_SOURCE_DOCK = 4;
    //网服
    public static final int DICT_SOURCE_WEBSITESER = 5;
    //巴枪
    public static final int DICT_SOURCE_BA = 6;
    //乾坤
    public static final int DICT_SOURCE_QK = 7;
    //新巴枪
    public static final int DICT_SOURCE_NEW_BA = 8;
    //微信
    public static final int DICT_SOURCE_WECHAT = 9;
    //优享寄
    public static final int DICT_SOURCE_UCP = 10;
    //问题件工单导入
    public static final int DICT_SOURCE_IMPORT = 12;
    //快件责任方
    public static final String TYPE_CLASS_CODE = "EXPRESS_RESPONSIBLE";

    /**kind状态*/
    //客服服务类工单
    public static final int DICT_KIND_CUST_SER = 0;
    //邮政投诉类工单
    public static final int DICT_KIND_POSTAL_COMPLAINTS = 1;
    //电商服务类工单
    public static final int DICT_KIND_COMMERCE = 2;
    //仲裁投诉类工单
    public static final int DICT_KIND_ARBITRATE_COMPLAINT =3;
    //仲裁申诉类工单
    public static final int DICT_KIND_ARBITRATE_APPEAL = 4;
    //客户来电
    public static final int DICT_KIND_CUSTOMER_PHONE =5;
    //工单系统手动输入问题件
    public static final int DICT_KIND_MANUAL = 6;
    //优速宝/巴枪问题件 网点版
    public static final int DICT_KIND_DOCK = 7;
    //电商工单类型
    public static final int WORKORDER_KIND_TYPE_CODE=10;
    //电商申诉类工单
    public static final int DICT_KIND_ORETAILERS_APPEAL = 9;
    //400工单类型
    public static final int ORDER_TYPE_KIND=8;
    //中转版
    public static final int ORDER_TYPE_TRANSFER = 12;
    //客户理赔类工单
    public static final int DICT_KIND_CUSTOMER_SETTLEMENT = 11;
    //拼多多工单
    public static final int DICT_KIND_PDD_TYPE_CODE = 14;


    /**流程处理结果 -- HANDLE_RESULT*/
    /**受理*/
    public static final int DICT_PROCESS_HANDLE_RESULT_YES = 1;
    /**驳回*/
    public static final int DICT_PROCESS_HANDLE_RESULT_NO = 0;

    /**
     * 问题件状态
     */
    //草稿
    public static final int DICT_PROBELM_STATUS_SAVE   = -1;
    //待处理
    public static final int DICT_PROBLEM_STATUS_WAIT   = 0;
    //处理中
    public static final int DICT_PROBLEM_STATUS_HANDLE = 1;
    //已处理待确认
    public static final int DICT_PROBLEM_STATUS_ENTER  = 2;
    //驳回处理中
    public static final int DICT_PROBLEM_STATUS_REJECT = 3;
    //已关闭
    public static final int DICT_PROBLEM_STATUS_END    = 4;

    /**
     * 客户理赔状态
     */
    //草稿
    public static final int DICT_CUSTOMER_SETTLEMENT_SAVE       = -1;
    //待处理
    public static final int DICT_CUSTOMER_SETTELMENT_WAIT       = 0;
    //处理中
    public static final int DICT_CUSTOMER_SETTLEMENT_HANDLE     = 1;
    //已处理待审核
    public static final int DICT_CUSTOMER_SETTLEMENT_WATI_AUDIT = 2;
    //已审核
    public static final int DICT_CUSTOMER_SETTLEMENT_AUDITED    = 3;
    //已关闭
    public static final int DICT_CUSTOMER_SETTLEMENT_END        = 4;



    /*********cs_sm_servorder_process表前置条件配置**********************/
    //查件类型前置条件
    //插件前置条件：有物流轨迹
    public static final String SOP_QUERY_COND_HAVE_WLGJ = "haveWlgj";
    //插件前置条件：无物流轨迹
    public static final String SOP_QUERY_COND_NO_WLGJ = "noWlgj";
    //下单寄件前置条件
    //下单寄件前置条件：已处理
    public static final String SOP_XDJJ_COND_HAVE = "have";
    //下单寄件前置条件：未处理
    public static final String SOP_XDJJ_COND_NO = "no";

    /******************工单标签字典项值**************************/
    //客服工单
    public static final int WO_LABLE_CUSTSER_WO = 0;
    //服务小结
    public static final int WO_LABLE_FWXJ = 1;
    //不生成数据
    public static final int WO_LABLE_NO = 2;

    /*****************工单第一处理方*********************/
    //寄件网点
    public static final int WO_DEAL_JJWD = 0;
    //派件网点
    public static final int WO_DEAL_PJWD = 1;
    //派件网点所属中心  失效
    public static final int WO_DEAL_PJWDSSZX = 2;
    //手动选择任意机构网点、分拨中心、财务中心
    public static final int WO_DEAL_SDXZ = 3;
    //运单发放网点
    public static final int WO_DEAL_FFWD = 5;
    //最后扫描节点
    public static final int WO_DEAL_ZHSMJD = 6;
    //寄件网点所属中心  pdd使用
    public static final int WO_DEAL_JJWDSSZX = 7;
    //总部仲裁
    public static final int WO_DEAL_ZBZC = 8;
    //派件方登记找寄件方，寄件方登记找派件方
    public static final int WO_DEAL_HZ = 9;
    //签收网点
    public static final int WO_DEAL_QSWD = 10;
    //手动选择网点  失效
    public static final int WO_DEAL_SDXZWD = 11;
    //手动选择中心
    public static final int WO_DEAL_SDXZZX = 12;
    //先找签收网点中心，再找派件网点中心
    public static final int WO_DEAL_QSPJ = 13;
    //网服特配，可选总部之外的所有
    public static final int WO_DEAL_WSTP = 14;
    //找扫描记录最后节点
    public static final int WO_DEAL_LASTWD = 15;

    /**工单类型-投诉 */
    public static final Long ORDER_TYPE_COMPLAIN =1099921872976490250L;
    /**工单类型-查询 */
    public static final Long ORDER_TYPE_QUERY =1099921333447438077L;
    /**工单类型-下单 */
    public static final Long ORDER_TYPE_CREATE_ORDER = 1099921684031483647L;
    /**工单类型-咨询 */
    public static final Long ORDER_TYPE_ADVISORY = 1099921732407537409L;
    /**工单子类型-投诉 -其它 */
    public static final Long ORDER_CHILD_TYPE_COMPLAIN_OTHER =1099921979605135121L;

    /**工单子类型-投诉 -无运单信息 */
    public static final Long ORDER_CHILD_TYPE_COMPLAIN_NOWAYBILL =1099949533046892657L;
    /**工单子类型-查件*/
    public static final Long ORDER_CHIL_TYPE_QUERY_PIECE =1099921459657191166L;
    /**工单子类型-下单寄件*/
    public static final Long ORDER_CHIL_TYPE_PLACE_ORDER =1099921711201136384L;

    /**工单类型-催派*/
    public static final Long ORDER_TYPE_DELIVERY = 1099949533046892454L;

    /**工单类型-删除签收*/
    public static final Long ORDER_TYPE_DELETE = 1099949533046892452L;

    /**
     * 总部一次定责
     */
    public static final String POSTAL_APPEAL_RULE_HQ = "apperRuleHQ";

    /**
     * 总部仲裁
     */
    public static final Integer PC_ORG_ID =1116;

    /**
     * 最新总部仲裁
     */
    public static final Integer ZBZC_ORG_ID = 10000000;

    /**
     *删除标记
     * */
    public static final  int IS_DELETE_FLAG =1;

    public static final  int IS_NOT_DELETE_FLAG =0;

    /********************************************接口访问地址***********************************/
    //获取运单信息
    /**
     * 乾坤旧接口
     */
    public static final String ICS_HTTPAPI_FIND_WAYBILL_INFO ="/wayBill/findWaybllInfo.do";
    /**
     * UBI新接口
     */
    public static final String ICS_HTTPAPI_FIND_WAYBILL_INFO_NEW ="/wayBill/findWaybllInfoNew.do";
    //获取物流轨迹
    public static final String ICS_HTTPAPI_FIND_TRACE_INFO ="/wayBill/findTraceInfo.do";
    /**
     * 获取物流轨迹WET新接口
     */
    public static final String ICS_HTTPAPI_FIND_TRACE_INFO_NEW ="/wayBill/findTraceInfoNew.do";
    //获取物流轨迹(物流轨迹拼接)
    public static final String ICS_HTTPAPI_FIND_TRAC_INFO ="/wayBill/findTracInfo.do";
    public static final String ICS_HTTPAPI_FIND_TRAC_INFO_NEW ="/wayBill/findTracInfoNew.do";
    //获取问题件
    public static final String ICS_HTTPAPI_FIND_PROBLEM_BILL ="/wayBill/findProblemBill.do";
    //获取发放记录
    public static final String ICS_HTTPAPI_FIND_DISPENSELIST ="/wayBill/findDispenseList.do";
    //短信调用接口
    public static final String ICS_HTTPAPI_SEND_MESSAGE ="/sms/sendMessage.do";
    //删除签收接口
    public static final String ICS_HTTPAPI_DELETE_SIGN = "/sign/deleteSign.do";
    /**
     * 新短信平台
     */
    public static final String ICS_HTTPAPI_SEND_SMS = "/message/sendMessage.do";
    /**
     * 批量删除签收接口
     */
    public static final String ICS_HTTPAPI_BATCH_DELETE_SIGN = "/sign/batchDeleteSign.do";
    //订单接口 2018-07-28
    public static final String ICS_HTTPAPI_CREATE_QK_ORDER = "/order/createQkOrder.do";
    //问题件回写更新（caisb 2018-08-07）
    public static final String ICS_HTTPAPI_UPDATE_PROBLEM = "/problem/updateProblem.do";
    //问题件回复（zhangwei 2019-01-22）
    public static final String ICS_HTTPAPI_CREATE_PROBLEM_REPLY = "/problem/createProblemReply.do";
    //问题件回写新增（caisb 2018-08-07）
    public static final String ICS_HTTPAPI_CREATE_PROBLEM = "/problem/createProblem.do";
    //CP操作上传（caisb 2018-08-17）
    public static final String ICS_HTTPAPI_OPERATION_REPLY = "/electronic/operationReply.do";
    //拼多多订单接口 2018-07-28
    public static final String ICS_HTTPAPI_FIND_PDD_ORDER = "/pdd/findPddOrder.do";
    public static final String ICS_HTTPAPI_CALL_PDD_ORDER = "/pdd/callPddOrder.do";
    public static final String ICS_HTTPAPI_UPLOAD_IMG_PDD_ORDER = "/pdd/uploadImg.do";
    public static final String ICS_HTTPAPI_FIND_TYPE_PDD_ORDER = "/pdd/findOrderType.do";
    /** 推送预付款操作 */
    public static final String ICS_HTTPAPI_PUSH_PREPAY = "/prsPrepay/pushAccFee.do";

    /******************************组织机构 **************************************/
    /** 机构-总部*/
    public static final int ORG_TYPE_HEAD_QUARTERS = 10;
    /** 机构-财务中心*/
    public static final int ORG_TYPE_FINANCIAL_CENTERE = 20;
    /** 机构-操作中心*/
    public static final int ORG_TYPE_OPERATIONAL_CENTER = 21;
    /** 机构-网点*/
    public static final int ORG_TYPE_WEB_SITE = 30;
    /** 机构-承包区*/
    public static final int ORG_TYPE_CONTRACT = 40;

    /****************************** 人员类型 *************************************/
    //客服
    public static final int ROLE_TYPE_CUSTOMER_SERVICE = 0;
    //客服领导
    public static final int ROLE_TYPE_MANAGER = 1;
    //总部仲裁普通人员
    public static final int ROLE_TYPE_ZCYG = 2;
    //总部仲裁领导
    public static final int ROLE_TYPE_ZCLD = 3;
    //区总
    public static final int ROLE_TYPE_QZ = 4;
    //总部邮政客服
    public static final int ROLE_TYPE_ZBYZZY = 5;
    //总部邮政领导
    public static final int ROLE_TYPE_ZBYZLD = 6;
    //超级管理员
    public static final int ROLE_TYPE_SUPER_MAN = 7;
    //邮政网点
    public static final int ROLE_TYPE_WEB_SITTE_YZ = 8;

    /************************************仲裁投诉定责结果是否成立****************************************/
    // 成立0
    public static final int ARB_COMP_HANDLE_YES = 0;
    // 不成立1
    public static final int ARB_COMP_HANDLE_NO = 1;
    /***************************************仲裁投诉质检结果是否合格****************************************/
    /**
     * @author chutianhua
     * @date 2017/7/9
     * @deprecated 增加质检结果是否常合格
     * **/
    // 不合格
    public static final int ARB_COMP_QUALITY_RESULT_NO = 0;
    // 合格
    public static final int ARB_COMP_QUALITY_RESULT_YES = 1;

    /*******************************仲裁投诉流程节点key常量*********************************************/
    //投诉处理
    public static final String ARB_COMP_KEY_HCPNODE = "HCPNode";
    // 仲裁质检
    public static final String ARB_COMP_KEY_ARBITRATIONQUAITYINSPECTION  = "ArbitrationQualityInspection";
    // 仲裁定责
    public static final String ARB_COMP_KEY_SETTLEMENTOFARBITRATION = "settlementOfArbitration";
    // 仲裁定责人员机构CODE
    public static final String ARB_COMP_KEY_EMP_ORG_SETTLEMENTOFARBITRATION = "settlementEmpOrg";
    // 仲裁定责人员机构NAME
    public static final String ARB_COMP_KEY_EMP_ORG_NAME_SETTLEMENTOFARBITRATION = "settlementEmpOrgName";
    // 仲裁定责人员Code
    public static final String ARB_COMP_KEY_EMP_CODE_SETTLEMENTOFARBITRATION = "settlementEmpCode";
    // 仲裁定责人员Name
    public static final String ARB_COMP_KEY_EMP_NAME_SETTLEMENTOFARBITRATION = "settlementEmpName";

    /**扫描类型： 收件*/
    public static final int SCAN_TYPE_GET = 1;
    /**扫描类型： 发件*/
    public static final int SCAN_TYPE_SEND = 2;
    /**扫描类型： 到件*/
    public static final int SCAN_TYPE_RECEIVE = 3;
    /**扫描类型： 派件*/
    public static final int SCAN_TYPE_DELIVERY = 4;
    /**扫描类型： 装袋*/
    public static final int SCAN_TYPE_BAG_IN = 5;
    /**扫描类型： 拆袋*/
    public static final int SCAN_TYPE_BAG_OUT = 6;
    /**扫描类型： 疑难件*/
    public static final int SCAN_TYPE_PUZZLE = 7;
    /**扫描类型： 留仓件*/
    public static final int SCAN_TYPE_STAY = 8;
    /**扫描类型： 自提*/
    public static final int SCAN_TYPE_TAKE = 9;
    /**扫描类型： 一票多件*/
    public static final int SCAN_TYPE_MANY = 10;
    /**扫描类型： 到件确认*/
    public static final int SCAN_TYPE_CONFIRM_RECEIVE = 11;
    /**扫描类型： 发件确认*/
    public static final int SCAN_TYPE_CONFIRM_SEND = 12;
    /**扫描类型： 回单发件*/
    public static final int SCAN_TYPE_SEND_BACK_BILL = 13;
    /**扫描类型： 回单到件*/
    public static final int SCAN_TYPE_RECEIVE_BACK_BILL = 14;
    /**扫描类型： 签收*/
    public static final int SCAN_TYPE_SIGN = 15;
    /**扫描类型： 外务员交单*/
    public static final int SCAN_TYPE_FIELDMAN_SUBMIT = 16;
    /**扫描类型： 出纳交单*/
    public static final int SCAN_TYPE_CASHIER_SUBMIT = 17;
    /**扫描类型： 班车到达*/
    public static final int SCAN_TYPE_CAR_ARRIVE = 18;
    /**扫描类型： 班车发车*/
    public static final int SCAN_TYPE_CAR_SET_OUT = 19;
    /**扫描类型： 退件*/
    public static final int SCAN_TYPE_RETURN_GOODS = 20;
    /**扫描类型：快件清关中*/
    public static final int SCAN_TYPE_CLEAR_CLOSEING=25;
    /**扫描类型：快件已清关*/
    public static final int SCAN_TYPE_CLEAR_CLOSED=26;
    /**扫描类型：代收*/
    public static final int SCAN_TYPE_COLLECT=30;
    /**扫描类型：确认签收*/
    public static final int SCAN_TYPE_CONFIRM_RECEIPT=31;
    /**扫描类型:建笼*/
    public static final int SCAN_TYPE_CAGE_IN=37;
    /**扫描类型:解笼*/
    public static final int SCAN_TYPE_CAGE_OUT=38;
    /**扫描类型：录单（扫描对比时使用）*/
    public static final int SCAN_TYPE_CREATE_BILL=999;
    /**扫描类型：安检扫描*/
    public static final int SCAN_TYPE_SECURITY_CHECK=27;
    // REQ#4273 增加派件确认扫描 2016-07-04 add begin
    /**扫描类型：派件确认*/
    public static final int SCAN_TYPE_CONFIRM_DELIVERY=29;
    // REQ#4273 增加派件确认扫描 2016-07-04 add end


    //工单类型-客户服务工单
    public final static String WO_CUST_SER_CODE = "KF";
    //工单类型-问题件
    public final static String WO_CUST_PROBLEM = "WT";
    //工单类型-邮政投诉工单
    public final static String WO_POSTAL_COMP_CODE = "YZ";
    //工单类型-邮政申诉工单
    public final static String WO_POSTAL_COMP_APPEAL_CODE = "WPCAC";
    //工单类型-仲裁投诉工单
    public final static String WO_ARB_COMP_CODE = "TS";
    //工单类型-仲裁申诉工单
    public final static String WO_ARB_APPEAL_CODE = "SS";
    //工单类型-电商投诉工单
    public final static String WO_ORE_COMP_CODE = "DS";
    //工单类型-电商申诉工单
    public final static String WO_ORE_APPEAL_CODE = "DSTS";
    //工单类型-客户理赔
    public final static String WO_ORG_CUSTOMER_SETTLEMENT_CODE = "KH";
    //工单类型-拼多多
    public final static String WO_ORG_PDD_CODE = "PDD";
    //字典项：已推广网点字典组编码
    public final static String PUSH_CUSTER_WEBSITE_SWITCH="PUSH_CUSTER_WEBSITE_SWITCH";
    public final static String HAVED_PUSH_WEBSITE = "havedPushWebSite";
    public final static String HAVED_PUSH_PROBLEM_WEBSITE = "havedPushProblemWebSite";
    public final static String HAVED_PUSH_UCB_WEBSITE = "havedPushUcbWebSite";

    //催办来源-来电弹屏
    public final static int URGE_SOURCE_CALL_SCREEN =0;
    //催办来源-客服工单
    public final static int URGE_SOURCE_WO_CUST_SER =1;

    //处理记录类型0：流程处理
    public final static int HANDLE_RECORD_TYPE_PROCESS_DEAL =0;
    //处理记录类型1：催办
    public final static int HANDLE_RECORD_TYPE_URGE =1;
    //处理记录类型2：变更
    public final static int HANDLE_RECORD_TYPE_CHANGE =2;
    //处理记录类型3：转派
    public final static int HANDLE_RECORD_TYPE_DUMP =3;
    //处理记录类型4：代理
    public final static int HANDLE_RECORD_TYPE_PROXY =4;
    //处理记录类型5：拼多多定责
    public final static int HANDLE_RECORD_TYPE_PDD_DUTY =5;

    /**
     * 处理记录处理方式：0正常 1代理 2超时
     */
    public final static int HANDLE_MODLE_TYPE_NORMAL =0;
    public final static int HANDLE_MODLE_TYPE_PROXY =1;
    public final static int HANDLE_MODLE_TYPE_TIMEOUT=2;
    //网点响应时长
    public final static String WEBSITE_RESPONSE_DURATION = "WEBSITE_RESPONSE_DURATION";
    //中心响应时长
    public final static String CENTER_RESPONSE_DURATION = "CENTER_RESPONSE_DURATION";
    //超级管理员字典组编码
    public final static String SUPER_ADMIN = "SUPER_ADMIN";
    //乾坤机构总部基准编码字典组编码
    public final static String ZB_BASE_ORG_CODE = "ZB_BASE_ORG_CODE";
    //客户理赔处理时效字典组编码
    public final static String CS_WO_CUSTOMER_SETTLEMENT_TIMER = "CS_WO_CUSTOMER_SETTLEMENT_TIMER";
    //电商客诉工单处理时效字典组编码
    public final static String DIAGRAMS_CSWOECCOMPLAINTS_ORDER_TIMER = "DIAGRAMS_CSWOECCOMPLAINTS_ORDER_TIMER";
    //流程默认处理人字典组
    public final static String WORKFLOW_DEFAULT_HANDLER = "WORKFLOW_DEFAULT_HANDLER";

    //乾坤机构状态标识
    //已启用
    public static final String CMS_ORG_STATUS_ENABLED = "9901";
    //暂停
    public static final String CMS_ORG_STATUS_PAUSE = "9902";
    //已停用
    public static final String CMS_ORG_STATUS_DEACTIVATED = "9903";
    //未审核
    public static final String CMS_ORG_STATUS_UNAUDITED = "1021";


    //工单类型//电商投诉类工单
    public static final int DICT_KIND_ORETAILERS_ORDER = 11;
    //网点处理节点编号
    public static final String EC_COMP_KEY_WEBSITE = "dealByLatticePoint";
    //中心客服处理节点编号
    public static final String EC_COMP_KEY_CENTER = "dealByServiceCenter";
    //中心核实回复节点编码
    public static final String EC_COMP_KEY_CENTER_CHECK = "usertask6";
    //二次定则
    public static final String EC_COMP_KEY_SECOND_DUTY = "secondDuty";


    /**
     * 客服服务工单状态
     * 2018-06-29
     * 字典项CUST_SER_STATUS
     * */
    //客服服务工单状态-草稿
    public final static int  CUST_SER_STATUS_DRAFT=-1;
    //客服服务工单状态-待处理
    public final static int  CUST_SER_STATUS_PENDING=0;
    //客服服务工单状态-处理中
    public final static int  CUST_SER_STATUS_PROCESS=1;
    //客服服务工单状态-已处理待审核
    public final static int  CUST_SER_STATUS_AUDIT=2;
    //客服服务工单状态-驳回处理中
    public final static int  CUST_SER_STATUS_DISMISSAL=3;
    //客服服务工单状态已审核
    public final static int  CUST_SER_STATUS_AUDITED=4;
    //客服服务工单状态已关闭
    public final static int  CUST_SER_STATUS_CLOSED=5;


    /**
     * 电商投诉工单状态
     * 2018-09-19
     * ORETAILERS_STATE
     * */
    //电商投诉工单状态-待处理
    public final static int  ORETAILERS_ORDER_STATUS_PENDING=1;
    //电商投诉工单状态-处理中
    public final static int  ORETAILERS_ORDER_STATUS_PROCESS=2;
    //电商投诉工单状态-已完成
    public final static int  ORETAILERS_ORDER_STATUS_AUDIT=3;
    //电商投诉工单状态-已撤销
    public final static int  ORETAILERS_ORDER_STATUS_CLOSED=4;
    /**
     * 仲裁投诉工单状态
     * 2018-07-05
     * 字典项 ORETAILERS_ORDER_STATUS
     * */
    // 仲裁投诉工单状态-草稿
    public final static int  ARBITRATION_COMPLAINTS_STATUS_DRAFT = -1;
    // 仲裁投诉工单状态-待处理
    public final static int  ARBITRATION_COMPLAINTS_STATUS_PENDING = 0;
    // 仲裁投诉工单状态-逾期未处理
    public final static int  ARBITRATION_COMPLAINTS_STATUS_PROCESS = 1;
    // 仲裁投诉工单状态-处理中
    public final static int  ARBITRATION_COMPLAINTS_STATUS_AUDIT = 2;
    // 仲裁投诉工单状态-待审核定责
    public final static int  ARBITRATION_COMPLAINTS_STATUS_AUDITED = 3;
    // 仲裁投诉工单状态-已完成
    public final static int  ARBITRATION_COMPLAINTS_STATUS_CLOSED = 4;
    // 仲裁投诉工单状态-待结案
    public final static int ARBITRATION_COMPLAINTS_STATUS_TO_SETTLE_A_CASE = 5;
    /**
     * @author chutianhua
     * @date 2018/7/12
     * @Description 增加仲裁投诉类型的常量值
     * **/
    // 遗失理赔
    public final static long ARBITRATION_COMPLAINTS_TYPE_LOSS_OF_CLAIM = 1099921993748328210L;
    // 破损理赔
    public final static long ARBITRATION_COMPLAINTS_TYPE_DAMAGE_CLAIM = 1099922008736673555L;
    //短少理赔
    public final static long ARBITRATION_COMPLAINTS_TYPE_SHORT_CLAIM = 1099922037225434901L;
    // 污染理赔
    public final static long ARBITRATION_COMPLAINTS_TYPE_POLLUTION_CLAIM = 1099922022552710932L;
    /**
     * @author chutianhua
     * @date 2018/7/12
     * @descripition 增加组织结构总部常量---用于总部直接认领仲裁投诉处理的工单状态的判断
     * **/
    public final static String  ORG_NAME_QUARTERS_NAME = "总部";

    /**
     * 电商投诉工单任务状态
     * 2018-09-19
     * @author caisb
     * 字典项ORETAILERS_TASK_STATE
     * */
    //待分配
    public final static int ORETAILERS_TASK_STATE_TOBEASS =0;
    //待处理
    public final static int ORETAILERS_TASK_STATE_TOBEPEND =1;
    //处理中
    public final static int ORETAILERS_TASK_STATE_INHAND =2;
    //已完成
    public final static int ORETAILERS_TASK_STATE_OFF =3;
    //已取消
    public final static int ORETAILERS_TASK_STATE_CANC =4;
    //已超时
    public final static int ORETAILERS_TASK_STATE_OUT =5;
    //待定责
    public final static int ORETAILERS_TASK_STATE_UNDE =6;
    //已定责
    public final static int ORETAILERS_TASK_STATE_RULE =7;

    //订单推送成功2018-07-28
    public static final int ORDER_PUSH_SUCCESS = 0;
    //订单推送失败018-07-28
    public static final int ORDER_PUSH_FAIL = 1;


    //2018年8月2日10:43:16 may 增加客户理赔工单类型
    //客户理赔-客服工单
    public static final int CUSTOMER_SETTLEMENT_TYPE_CUSTSER = 0;
    //客户理赔-电商客诉
    public static final int CUSTOMER_SETTLEMENT_TYPE_ORETAILERS = 1;

    //系统消息 已勾选
    public static final String ICS_SYSTEM_MSG_IS_CHECKED = "1";
    //系统消息 未勾选
    public static final String ICS_SYSTEM_MSG_UN_CHECKED = "0";
    //系统消息已读
    public static final int ICS_SYSTEM_MSG_READED = 1;
    //系统消息未读
    public static final int ICS_SYSTEM_MSG_UN_READED = 0;
    //系统消息展示限制条数
    public static final int ICS_SYSTEM_MSG_LIMIT = 10;
    //系统消息系统推送方
    public static final String ICS_SYSTEM_MSG_SYS_EMP = "system";
    //消息推送字典
    public static final String ICS_SYSTEM_MSG_CONFIG = "ICS_SYSTEM_MSG_CONFIG";
    //消息推送类型 待认领
    public static final String ICS_SYSTEM_MSG_TYPE_CLAIM = "待认领";
    //消息推送类型 待办
    public static final String ICS_SYSTEM_MSG_TYPE_NEED_TO_DO = "待办";

    public static final String ICS_SYSTEM_MSG_PER_CLAIM = "wo_cs_to_claim";
    public static final String ICS_SYSTEM_MSG_PRE_TO_DO = "wo_cs_todo";


    public static final String ICS_WO_HANDLE_ACCEPT = "appealaccept";
	   /**
      * 获取满意度链接的东西
       * @Author liupan
       * @Description
       * @Date  2020-06-15 14:36
       */


     public static final String CCIM_GET_SATISFIED_URL ="/api/openChannel/getSatisfiedUrl" ;

      /**
       * 获取满意度链接的协议,域名,端口
        * @Author liupan
        * @Description
        * @Date  2020-06-15 14:42
        */
    public static final String CCIM_GET_SATISFIED_HOST ="CCIM_GET_SATISFIED_HOST" ;
     /**
       * @Author liupan
       * @Description
       * @Date  2020-06-15 14:38
       */
    public static final String CC_CHANNEL = "27";
    /**
     * 3d数据库同步开关
     */
    public static final String GET_THIRDDDB_TO_CC_DB_SWITCH = "GET_THIRDDDB_TO_CC_DB_SWITCH";
    /**
     * 满意度短信发送开关
     */
    public static final String SATISFIED_MESSAGE_SWTICH =  "SATISFIED_MESSAGE_SWTICH";
    /**
     * 满意度链接请求开关
     */
    public static final String CCIM_GET_SATISFIED_SWITCH = "CCIM_GET_SATISFIED_SWITCH";
    /** 工单-客户类型 */
    public static final String WOS_CUSTOMER_TYPE = "wos_customer_type";
    /** 工单-回电时效 */
    public static final String WOS_CALL_BACK_TIME_WITHIN = "wos_call_back_time_within";
    /** 工单-责任环节  */
    public static final String WOS_RESPONSIBILITY_LINK = "wos_responsibility_link";
    /** 工单-工单处理类型 */
    public static final String WOS_DEAL_TYPE = "wos_deal_type";
    /** 工单-流转类型 */
    public static final String WOS_FLOW_TYPE = "wos_flow_type";
    /** 工单状态 */
    public static final String WOS_BILL_STATUS = "wos_bill_status";
    /**
     * 客服工单问题件模版
     */
    public static final String TEMPLATE_SATISFIED_MESSAGE = "cc-assess";
    
     /**
       *    1 代收货款  2 货物路由  3 下单
       * @Author liupan
       * @Description 
       * @Date  2020-07-20 14:56
       */
    public static final String YUNHU_COD = "1";
     /**
       * 1 代收货款  2 货物路由  3 下单
       * @Author liupan
       * @Description 
       * @Date  2020-07-20 14:56
       */
    public static final String YUNHU_QUERY_TRUNK = "2";
     /**
       * 1 代收货款  2 货物路由  3 下单
       * @Author liupan
       * @Description 
       * @Date  2020-07-20 14:56
       */
    public static final String YUNHU_ORDER = "3";
     /**
       * 
       * @Author liupan
       * @Description 
       * @Date  2020-07-20 14:56
       */
    public static final String FAIL = "fail";
    public static final String SUCCESS = "success";
    public static final String CC_CREATE_ORDER = "cc_create_order" ;
    public static final String CC_COMMON = "cc_common";
    public static final String CC_NO_COD = "cc_no_cod";
    public static final String CC_HAVE_COD = "cc_have_cod" ;


    //消息工单名称Map
    protected static final Map<String,String> ICS_SYSTEM_MSG_TEMPLE=new HashMap<>();
    //消息工单URL Map
    protected static final Map<String,String> ICS_SYSTEM_MSG_URL=new HashMap<>();
    //消息工单Tab Map
    protected static final Map<String,String> ICS_SYSTEM_MSG_TAB=new HashMap<>();
    static{
        /**************名称配置****************/
        //待认领
        ICS_SYSTEM_MSG_TEMPLE.put(DIAGRAMS_CS_CUST_SER_ORDER,"客服类工单");
        ICS_SYSTEM_MSG_TEMPLE.put(DIAGRAMS_PROBLEM_ORDER_KEY,"问题件工单");
        /*ICS_SYSTEM_MSG_TEMPLE.put(DIAGRAMS_PROBLEM_DELETE_KEY,"删除签收问题件工单");*/
        ICS_SYSTEM_MSG_TEMPLE.put(DIAGRAMS_CUSTOMER_SETTLEMENT_KEY,"客户理赔工单");
        ICS_SYSTEM_MSG_TEMPLE.put(DIAGRAMS_POSTAL_SERVICE_PROCESS_KEY,"邮政投诉工单");
        ICS_SYSTEM_MSG_TEMPLE.put(DIAGRAMS_CSWOARBITRATIONCOMPLAINTS_ORDER_KEY,"仲裁投诉工单");
        ICS_SYSTEM_MSG_TEMPLE.put(DIAGRAMS_ARBITRATIONAPPEAL_KEY,"仲裁申诉工单");
        ICS_SYSTEM_MSG_TEMPLE.put(DIAGRAMS_CSWOECCOMPLAINTS_ORDER_KEY,"电商客诉工单");
        ICS_SYSTEM_MSG_TEMPLE.put(DIAGRAMS_ORETAILERSAPPEAL_KEY,"电商申诉工单");
        //待办
        ICS_SYSTEM_MSG_TEMPLE.put(WO_CUST_PROBLEM,"问题件工单");
        ICS_SYSTEM_MSG_TEMPLE.put(WO_CUST_SER_CODE,"客户服务工单");
        ICS_SYSTEM_MSG_TEMPLE.put(WO_POSTAL_COMP_CODE,"邮政投诉工单");
        ICS_SYSTEM_MSG_TEMPLE.put(WO_ARB_COMP_CODE,"仲裁投诉工单");
        ICS_SYSTEM_MSG_TEMPLE.put(WO_ARB_APPEAL_CODE,"仲裁申诉工单");
        ICS_SYSTEM_MSG_TEMPLE.put(WO_ORE_COMP_CODE,"电商投诉工单");
        ICS_SYSTEM_MSG_TEMPLE.put(WO_ORE_APPEAL_CODE,"电商申诉工单");
        ICS_SYSTEM_MSG_TEMPLE.put(WO_ORG_CUSTOMER_SETTLEMENT_CODE,"客户理赔工单");
        /**************url配置****************/
        //待认领
        ICS_SYSTEM_MSG_URL.put(DIAGRAMS_CS_CUST_SER_ORDER,"/cs/CsWoCustSer/claimView.do");
        ICS_SYSTEM_MSG_URL.put(DIAGRAMS_PROBLEM_ORDER_KEY,"/cs/CsProblemOrder/claimView.do");
        ICS_SYSTEM_MSG_URL.put(DIAGRAMS_CUSTOMER_SETTLEMENT_KEY,"/cs/customerSettlement/claimView.do");
        ICS_SYSTEM_MSG_URL.put(DIAGRAMS_POSTAL_SERVICE_PROCESS_KEY,"/cs/CsWoPostalComplaints/claimView.do");
        ICS_SYSTEM_MSG_URL.put(DIAGRAMS_CSWOARBITRATIONCOMPLAINTS_ORDER_KEY,"/cs/CsWoArbitrationComplaints/toSettleACaseView.do");
        ICS_SYSTEM_MSG_URL.put(DIAGRAMS_ARBITRATIONAPPEAL_KEY,"/cs/CsWoArbitrationAppeal/claimView.do");
        ICS_SYSTEM_MSG_URL.put(DIAGRAMS_CSWOECCOMPLAINTS_ORDER_KEY,"/cs/CsWoOretailersOrder/toClaimView.do");
        ICS_SYSTEM_MSG_URL.put(DIAGRAMS_ORETAILERSAPPEAL_KEY,"/cs/CsWoOretailersAppeal/claimView.do");
        //待办
        ICS_SYSTEM_MSG_URL.put(WO_CUST_PROBLEM,"/cs/CsProblemOrder/dealtView.do");
        ICS_SYSTEM_MSG_URL.put(WO_CUST_SER_CODE,"/cs/CsWoCustSer/dealtView/all.do");
        ICS_SYSTEM_MSG_URL.put(WO_POSTAL_COMP_CODE,"/cs//CsWoPostalComplaints/dealtView.do");
        ICS_SYSTEM_MSG_URL.put(WO_ARB_COMP_CODE,"/cs/CsWoArbitrationComplaints/needToBeDealtWithView.do");
        ICS_SYSTEM_MSG_URL.put(WO_ARB_APPEAL_CODE,"/cs/CsWoArbitrationAppeal/waitView.do");
        ICS_SYSTEM_MSG_URL.put(WO_ORE_COMP_CODE,"/cs/CsWoOretailersOrder/toNeedDealView.do");
        ICS_SYSTEM_MSG_URL.put(WO_ORE_APPEAL_CODE,"/cs/CsWoOretailersAppeal/waitView.do");
        ICS_SYSTEM_MSG_URL.put(WO_ORG_CUSTOMER_SETTLEMENT_CODE,"/cs/customerSettlement/dealView.do");
        /**************Tab配置****************/
        //待认领
        ICS_SYSTEM_MSG_TAB.put(DIAGRAMS_CS_CUST_SER_ORDER,"待认领客服工单");
        ICS_SYSTEM_MSG_TAB.put(DIAGRAMS_PROBLEM_ORDER_KEY,"待认领问题件工单");
        ICS_SYSTEM_MSG_TAB.put(DIAGRAMS_CUSTOMER_SETTLEMENT_KEY,"待认领客户理赔工单");
        ICS_SYSTEM_MSG_TAB.put(DIAGRAMS_POSTAL_SERVICE_PROCESS_KEY,"待领邮政投诉工单");
        ICS_SYSTEM_MSG_TAB.put(DIAGRAMS_CSWOARBITRATIONCOMPLAINTS_ORDER_KEY,"待认领仲裁投诉工单");
        ICS_SYSTEM_MSG_TAB.put(DIAGRAMS_ARBITRATIONAPPEAL_KEY,"待认领仲裁申诉工单");
        ICS_SYSTEM_MSG_TAB.put(DIAGRAMS_CSWOECCOMPLAINTS_ORDER_KEY,"待领电商客诉类工单");
        ICS_SYSTEM_MSG_TAB.put(DIAGRAMS_ORETAILERSAPPEAL_KEY,"待领电商申诉类工单");
        //待办
        ICS_SYSTEM_MSG_TAB.put(WO_CUST_PROBLEM,"待办问题件工单");
        ICS_SYSTEM_MSG_TAB.put(WO_CUST_SER_CODE,"待办客户服务工单");
        ICS_SYSTEM_MSG_TAB.put(WO_POSTAL_COMP_CODE,"待办邮政投诉工单");
        ICS_SYSTEM_MSG_TAB.put(WO_ARB_COMP_CODE,"待办仲裁投诉工单");
        ICS_SYSTEM_MSG_TAB.put(WO_ARB_APPEAL_CODE,"待办仲裁申诉工单");
        ICS_SYSTEM_MSG_TAB.put(WO_ORE_COMP_CODE,"待办电商投诉工单");
        ICS_SYSTEM_MSG_TAB.put(WO_ORE_APPEAL_CODE,"待办电商申诉工单");
        ICS_SYSTEM_MSG_TAB.put(WO_ORG_CUSTOMER_SETTLEMENT_CODE,"待办客户理赔工单");
    }

    //仲裁投诉类型A001
    //仲裁投诉类型-其它
    public static final Long COMPLAIN_TYPE_OTHER =1099921979605135121L;
    //仲裁投诉类型-污染理赔
    public static final Long COMPLAIN_TYPE_POLLUTION_CLAIM =1099922022552710932L;
    //仲裁投诉类型-服务态度差
    public static final Long COMPLAIN_TYPE_POOR_SERVICE_ATTITUDE =1099921963066994448L;
    //仲裁投诉类型-超区转件违规收费
    public static final Long COMPLAIN_TYPE_OUTOFAREA_TRANSFER_FEE =1099921949773147919L;
    //仲裁投诉类型-虚假信息
    public static final Long COMPLAIN_TYPE_FALSE_INFORMATION =1099921919659093773L;
    //仲裁投诉类型-回单遗失理赔
    public static final Long COMPLAIN_TYPE_CLAIM_LOSS =1099922052522061590L;
    //仲裁投诉类型-回单返回延误
    public static final Long COMPLAIN_TYPE_RETURN_DELAY =1099921904087740172L;
    //仲裁投诉类型-分拨错误
    public static final Long COMPLAIN_TYPE_DIAL_ERROR =7L;
    //仲裁投诉类型-时效延误
    public static final Long COMPLAIN_TYPE_AGING_DELAY =1099921890441572107L;
    //仲裁投诉类型-短少理赔
    public static final Long COMPLAIN_TYPE_SHORT_CLAIM =1099922037225434901L;
    //仲裁投诉类型-破损理赔
    public static final Long COMPLAIN_TYPE_DAMAGE_CLAIM =1099922008736673555L;
    //仲裁投诉类型-遗失理赔
    public static final Long COMPLAIN_TYPE_LOST_CLAIM=1099921993748328210L;

    //任务转派方式
    //网点内转派
    public static final int DUMP_TASK_MODE_ZERO = 0;
    //中心内机构间转派
    public static final int DUMP_TASK_MODE_ONE = 1;
    //中心内客服间转派
    public static final int DUMP_TASK_MODE_TWO = 2;
    //网点向中心转派(网点申请跨省转派)
    public static final int DUMP_TASK_MODE_THREE = 3;
    //中心间机构转派
    public static final int DUMP_TASK_MODE_FOUR = 4;
    //总部转派
    public static final int DUMP_TASK_MODE_FIVE = 5;
    //转派申请
    public static final int DUMP_TASK_MODE_SIX = 6;


    /**
     * 网点-邮政申诉
     */
    public static final String CATEGORY_WEBSITE = "0";

    /**
     * 中心-邮政申诉
     */
    public static final String CATEGORY_CENTER = "1";
    /**
     * 总部-邮政申诉
     */
    public static final String CATEGORY_HQ = "2";
    /**
     * 太平洋保险理赔接口类型--文件上传,理赔文件
     */
    public static final String CPIC_UPLOAD_LIPEI = "uploadFile_lipei";
    /**
     * 太平洋保险理赔接口类型--文件上传,理赔图片关系文件
     */
    public static final String CPIC_UPLOAD_GUANXI = "uploadFile_guanxi";
    /**
     * 太平洋保险理赔接口类型--文件上传,面单附件
     */
    public static final String CPIC_UPLOAD_TUPIAN_SHEET = "uploadFile_tupian_sheet";
    /**
     * 太平洋保险理赔接口类型--文件上传,面单附件
     */
    public static final String CPIC_UPLOAD_TUPIAN_GOOD = "uploadFile_tupian_good";
    /**
     * 太平洋保险理赔接口类型--文件上传,面单附件
     */
    public static final String CPIC_UPLOAD_TUPIAN_DAMAGE = "uploadFile_tupian_damage";
    /**
     * 太平洋保险理赔接口类型--未赔付
     */
    public static final String CPIC_UNPAYED = "unPayAllInfoReturn";
    /**
     * 太平洋保险理赔接口类型--支付状态回写
     */
    public static final String CPIC_PAYTIME = "payTimeReturn";
    /**
     * 太平洋保险理赔接口类型--已赔付清单
     */
    public static final String CPIC_PAYED = "payListReturn";
    /**
     * 待办不展示
     * */
    public  static  final  int DEALT_NOT_SHOW =1;
    /**
     * 待办展示
     * */
    public  static  final  int DEALT_SHOW =0;
    /**
     * 工单页面类型
     */
    //待认领
    public static final String WO_ORDER_PAGE_TYPE_CLAIM="claim";
    //待办
    public static final String WO_ORDER_PAGE_TYPE_DEAL="complete";
    //已办
    public static final String WO_ORDER_PAGE_TYPE_DONE="done";
    //全部
    public static final String WO_ORDER_PAGE_TYPE_ALL="all";
    /**保险理赔独有**/
    //待结案
    public static final String WO_ORDER_PAGE_TYPE_UNSETTLED="all_unsettled";
    /**
     * 保险罚款金额是否为0
     */
    public static final int INSURRANCE_IS_ZERO=0;
    public static final int INSURRANCE_NOT_ZERO=1;
    /**
     * 保险接口推送是否成功
     *
     */
    public static final String INSURRANCE_CPIC_PUSH_SUCCESS="1";//成功
    public static final String INSURRANCE_CPIC_PUSH_UN="0";//未调用
    public static final String INSURRANCE_CPIC_PUSH_FAIL="-1";//失败
    //最大重试次数
    public final static int  INSURRANCE_CPIC_PUSH_MAX_TIMES = 11;
    /**
     * 保险理赔流程key
     */
    public static final String INSURRANCE_TASK_WEBSITE_PROVE_HANDLE = "websiteProveTask";//网点提交证明
    public static final String INSURRANCE_TASK_WEBSITE_CERTIFY_HANDLE= "siteCertifyTask";//网点提交凭证
    public static final String INSURRANCE_TASK_FINANCE_CERTIFY_HANDLE= "financeSiteCertifyTask";//财务中心提交凭证
    public static final String INSURRANCE_TASK_ARB_PUSH_HANDLE= "arbitratePushTask";//仲裁推送
    public static final String INSURRANCE_TASK_ARB_CERTIFY_HANDLE= "arbitrateCertifyTask";//仲裁凭证审核
    public static final String INSURRANCE_TASK_ARB_SELF_HANDLE = "arbitrateFirstHandleTask";//仲裁审核
    public static final String INSURRANCE_TASK_PRO_REJECT_HANDLE = "proveRejectTask";//价值证明无效
    public static final String INSURRANCE_TASK_CPIC_REJECT_HANDLE = "cpicRejectOverTask";//保险驳回
    public static final String INSURRANCE_TASK_CPIC_TASK_HANDLE = "cpicTask";//保险
    public static final String INSURRANCE_TASK_BATCH_SETTLE_TASK= "batchSettleTask";//批量结案
    /**
     * 推送网点 批量结果
     */
    public static final String INSURRANCE_TASK_ARB_PUSH_RESULT_OK= "仲裁推送成功";
    public static final String INSURRANCE_TASK_ARB_PUSH_RESULT_FAIL= "仲裁推送失败";
    public static final String INSURRANCE_TASK_ARB_PUSH_RESULT_FAIL_NOT_TASK= "当前不是【仲裁推送】任务节点";
    public static final String INSURRANCE_TASK_ARB_PUSH_RESULT_FAIL_NOT_SECOND= "为非正常状态，不能推送该网点";
    /**
     * 批量结案 批量结果
     */
    public static final String INSURRANCE_TASK_BATCH_SETTLE_RESULT_OK= "批量结案成功";
    public static final String INSURRANCE_TASK_BATCH_SETTLE_RESULT_NOT_TASK= "批量结案失败，当前不是【仲裁审核】任务节点";
    public static final String INSURRANCE_TASK_BATCH_SETTLE_RESULT_NOT_ZERO= "批量结案失败，当前罚款金额不为0";
    public static final String INSURRANCE_TASK_BATCH_SETTLE_RESULT_FAIL= "批量结案失败";
    /**
     * 网点是否停用
     */
    public static final Integer INSURRANCE_WEBSITE_IS_STOP= 1;
    public static final Integer INSURRANCE_WEBSITE_NOT_STOP= 0;
    /**
     * 停用网点是否已推送过
     */
    public static final Integer INSURRANCE_WEBSITE_IS_STOP_IS_PUSH= 1;
    public static final Integer INSURRANCE_WEBSITE_IS_STOP_NOT_PUSH= 0;
    /**
     * 推送网点状态
     */
    public static final Integer INSURRANCE_WEBSITE_PUSH_DEFAULT= 0;
    public static final Integer INSURRANCE_WEBSITE_PUSH_OK= 1;
    public static final Integer INSURRANCE_WEBSITE_PUSH_FAIL= 2;
     /**
     * 保险理赔状态
     */
    //草稿
    public static final int DICT_INSURRANCE_SAVE       = -1;
    //待处理
    public static final int DICT_INSURRANCE_WAIT       = 0;
    //处理中
    public static final int DICT_INSURRANCE_HANDLE     = 1;
    //已处理待审核
    public static final int DICT_INSURRANCE_WATI_AUDIT = 2;
    //已审核
    public static final int DICT_INSURRANCE_AUDITED    = 3;
    //已关闭
    public static final int DICT_INSURRANCE_END        = 4;


    //保险理赔工单流程定义key
    public static final String DIAGRAMS_INSURRANCE_KEY = "InsuranceClaimProcess";
    //自定义redis
    public static final String SELF_REDIS = "selfRedis";
    //框架封装的redis
    public static final String FRAME_REDIS = "frameRedis";

    //保险理赔工单流程定义key
    public static final int DICT_KIND_INSURRANCE = 13;//保险理赔类工单
    //工单类型-客户理赔
    public final static String WO_INSURRANCE_CODE = "INS";

    //HashMap默认长度
    public final static int HASH_MAP_LENGTH = 16;
    //理赔文件上传
    public static final String ICS_CPIC_FILE_UPLOAD = "/cpic/uploadFile.do";


    public static final int CPIC_TYPE_LIPEI = 2;
    public static final int CPIC_TYPE_TUPIAN = 3;
    public static final int CPIC_TYPE_LIPEI_TUPIAN = 4;

    public static final String PIC_SHEET="sheet";
    public static final String PIC_GOOD="goodValue";
    public static final String PIC_DAMAGE="damage";
    public static final String PIC_SHEET_FILE="sheetFile";
    public static final String PIC_RE_SHEET_FILE="reSheetFile";
    public static final String PIC_GOOD_FILE="goodsValueFile";
    public static final String PIC_RE_GOOD_FILE="reGoodsValueFile";
    public static final String PIC_DAMAGE_FILE="damageFile";
    public static final String PIC_RE_DAMAGE_FILE="reDamageFile";

    public static final String PIC_SHEET_DESC="运单附件";
    public static final String PIC_GOOD_DESC="价值证明";
    public static final String PIC_DAMAGE_DESC="破损污染";

    // 保险理赔工单状态-草稿
    public final static int  INSURRANCE_STATUS_DRAFT = -1;
    // 保险理赔工单状态-待处理
    public final static int  INSURRANCE_STATUS_PENDING = 0;
    // 保险理赔工单状态-处理中
    public final static int  INSURRANCE_STATUS_PROCESS = 1;
    // 保险理赔工单状态-已处理待审核
    public final static int  INSURRANCE_STATUS_AUDIT = 2;
    // 保险理赔工单状态-驳回处理中
    public final static int  INSURRANCE_STATUS_AUDITED = 3;
    // 保险理赔工单状态-已完成
    public final static int  INSURRANCE_STATUS_CLOSED = 4;
    // 保险理赔工单状态-保险审核
    // 保险理赔保险审核状态-推送保险成功
    public final static int  INSURRANCE_STATUS_CPIC_AUDIT = 5;
    // 保险理赔保险审核状态-推送保险失败
    public final static int  INSURRANCE_STATUS_CPIC_UPLOAD_FAIL = 50;
    // 保险理赔保险审核状态-保险审核不通过
    public final static int  INSURRANCE_STATUS_CPIC_AUDIT_FAIL = 52;
    // 保险理赔保险审核状态-保险审核通过
    public final static int  INSURRANCE_STATUS_CPIC_AUDIT_DONE = 51;
    // 保险理赔工单状态-待二次提交材料
    public final static int  INSURRANCE_STATUS_TASK_PROVE = 6;
    // 保险理赔工单状态-待二次结案
    public final static int  INSURRANCE_STATUS_TASK_SELF = 7;
    // 保险理赔工单状态-待提交赔付凭证
    public final static int  INSURRANCE_STATUS_TASK_PROOF = 8;
    // 保险理赔工单状态-待审核赔付凭证
    public final static int  INSURRANCE_STATUS_TASK_PROOF_AUDIT = 9;
    // 保险理赔工单状态-已批量结案
    public final static int  INSURRANCE_STATUS_BATCH = 10;

    // 保险理赔工单-赔付凭证审核状态-通过
    public final static int  INSURRANCE_STATUS_PROOF_AUDIT_PASS = 1;
    // 保险理赔工单-赔付凭证审核状态-不通过
    public final static int  INSURRANCE_STATUS_PROOF_AUDIT_FAIL = -1;
    // 遗失理赔
    public final static String INSURRANCE_TYPE_LOSS_OF_CLAIM = "遗失";
    // 破损理赔
    public final static String INSURRANCE_TYPE_DAMAGE_CLAIM = "破损";
    //短少理赔
    public final static String INSURRANCE_TYPE_SHORT_CLAIM = "短少";
    // 污染理赔
    public final static String INSURRANCE_TYPE_POLLUTION_CLAIM = "污染";

    public final static String INSURRANCE_CPIC_ARB_PROCESS="仲裁审核通过";
    public final static String HANDLEEXPLAIN_AUDIT_REJECT_REASON="INSURRANCE_AUDIT_REJECT_REASON";
    public final static String HANDLEEXPLAIN_CPIC_REJECT_REASON="保险驳回超过一次";

    public final static String CPIC_IS_ZERO="1";
    public final static String CPIC_IS_NOT_ZERO="0";

    public final static String CPIC_DEFAULT_URL="jttpitxtest.cpic.com.cn";
    
    public final static String ORDER_STAT_TIME_CACHE = "stat_time";
    
    public final static String ORDER_STAT_QUANLIANG_LIUCHENG_CACHE = "STAT_SWITCH";
    
    public final static String EXCEL_COUNT = "EXCEL_COUNT";
    
	//文件导出
	public final static String EXPORT_FILE = "exportFile";
	
	public final static String EXPORT_FILE_NAME = "客户投诉清单报表";
    /**
     * 代理未处理
     * */
    public final static int PROXY_DEAL=0;
    
    public final static Integer QUERY_EXCEL_AMOUNT = 10000;
    
    public final static Integer QUERY_EXCEL_COUNT = 50000;
    
    // liupan 新增问题件类型 20190110 add
    /**  邮政申诉  */ 
    public final static String PROBLEM_REASON_POSTAL_COMPLAINT = "邮政申诉";
    /**  电商客诉 */ 
    public final static String PROBLEM_REASON_ECUSTOMER_COMPLAINT = "电商客诉";
    /**  通知专用（限中心/总部使用）  */ 
    public final static String PROBLEM_REASON_SPECIAL_NOTICE = "通知专用（限中心/总部使用）";
    /**  400查件  */ 
    public final static String PROBLEM_REASON_FOURTEEN_ZERO_CHECK = "400查件";
    /**  未录单  */ 
    public final static String PROBLEM_REASON_NO_BILL = "未录单";
    /**  虚假签收  */ 
    public final static String PROBLEM_REASON_LIE_SIGN = "虚假签收";
    /**  一货多单  */ 
    public final static String PROBLEM_REASON_ONE_CODE_MORE_BILL = "一货多单";
    /**   取消回单业务  */ 
    public final static String PROBLEM_REASON_CANCEL_BACK_BILL = "取消回单业务";
    /** 电话异常  */
    public final static String PROBLEM_REASON_NUMBER_ERROR = "电话异常";
    
    /**   删除签收  */ 
    public final static String PROBLEM_REASON_DELETE_SIGN = "删除签收";
    /**   催派  */ 
    public final static String PROBLEM_REASON_DELIVERY = "催派";
    /**   客户要求更改收件地址  */
    public final static String PROBLEM_REASON_CHANGE_DELIVERY_ADRDESS= "客户要求更改收件地址";
    /**   退件  */
    public final static String PROBLEM_REASON_RETURN= "退件";
    /**   客户拒收  */
    public final static String PROBLEM_REASON_REJECT= "客户拒收";
    /**   到付/代收金额异常  */
    public final static String PROBLEM_REASON_FREIGHT_COLLECT_EXCEPTION= "到付/代收金额异常";
    public final static int PROBLEM_CREATE_TYPE_ICS = 4;


    /**
     * 手工指派
     */
    public static final String DEAL_ORG_TYPE_QK_TO_ORG = "2";
    /**   方便压测去除单号重复性校验开关  */ 
    public static final String CHECK_BILLCODE_SWITCH = "CHECK_BILLCODE_SWITCH";
    /**   批量回复问题件类型  */
    public static final String BATCH_REPLY_ORDER_CHILD_TYPE = "BATCH_REPLY_ORDER_CHILD_TYPE";

    public static final String CHECK_BILLCODE_SWITCH_TRUE = "1";

    public static final String COUNT = "COUNT";
    // liupan 新增问题件类型 20190110 end

    //问题件回复 TYPE_CLASS_CODE
    public final static String PROBLEMREPLY = "problemReply";
    //问题件回复 TYPE_ID
    public final static int PROBLEMREPLY_TYPE_ID = 1;
    //问题件状态 未处理
    public final static int QK_PROBLEM_STATUS_UNSTART = 1002;
    //问题件状态 处理中
    public final static int QK_PROBLEM_STATUS_DOING = 1003;
    //问题件状态 已处理
    public final static int QK_PROBLEM_STATUS_DONE = 1008;
    //问题件回复 已处理
    public final static String QK_PROBLEM_EXPALIN_DONE = "工单已完成";

    //申诉系统处理数据返回码
    //正常
    public final static int POTEVIO_RESP_CODE_SUCCESS=1;
    //失败
    public final static int POTEVIO_RESP_CODE_FAILED=2;
    //部分失败
    public final static int POTEVIO_RESP_CODE_PART_FAILED=2;
    //异常
    public final static int POTEVIO_RESP_CODE_ERROR=4;
    //申诉系统来源0:投诉|1:申诉
    public final static int POTEVIO_APPEAL_SOURCE_A=0;
    public final static int POTEVIO_APPEAL_SOURCE_B=1;
    
    public final static String SYSTEAM_UCP = "UCP";
    
    public final static String SYSTEAM_WECHAT = "WECHAT";
    
    public final static String SYSTEAM_KDXF = "KDXF";
    
    /** 已签收 */
    public final static String SIGN_TYPE_YES = "已签收";
    /** 未签收 */
    public final static String SIGN_TYPE_NO = "未签收";
    /**
     * 邮管局操作人
     */
    public final static String POTEVIO_OPT = "邮管局";

    /**
     * 运单查询接口切换开关
     */
    public static final String CHECK_FIND_WAYBILL_SWITCH = "CHECK_FIND_WAYBILL_SWITCH";

    /**
     * 查询权限跟机构绑定开关优化
     */
    public static final String FIND_AUTHORITY_SWITCH = "FIND_AUTHORITY_SWITCH";

    public static final String BILL_TRACE_SWITCH = "BILL_TRACE_SWITCH";
    /**
     * 构造函数。
     */
    private CcConstants() {

    }

    //电商定责等待二次下发节点
    public final static String DIAGRAMS_CSWOECCOMPLAINTS_WAIT_SECOND_DUTY = "hySecondAppeal";

    public final static String YZ_BILL_INFO_SWITCH = "YZ_BILL_INFO_SWITCH";

    public final static String YZ_BILL_INFO_QK = "1";

    public final static String YZ_BILL_INFO_UBI = "2";

    public final static String DELIVERYORGCODE = "deliveryOrgCode";
    public final static String SCANTYPE = "scanType";
    public final static String SCANORGCODE = "scanOrgCode";

    //工作流跳过节点开关
    public final static String ACTIVITI_SKIP_EXPRESSION_ENABLED="_ACTIVITI_SKIP_EXPRESSION_ENABLED";

    public final static String PDD_BILL_INFO_SWITCH = "YZ_BILL_INFO_SWITCH";

    /**
     * 拼多多责任方网点处理节点
     * */
    public static final String DIAGRAMS_PDD_SER_ORDER_TASK_WEBSITE_DEAL = "website";
    /**
     * 拼多多责任方定责节点
     * */
    public static final String DIAGRAMS_PDD_SER_ORDER_TASK_FIX_DUTY_DEAL = "fixDuty";
    /**
     * 拼多多二次申诉
     * */
    public static final String DIAGRAMS_PDD_SER_ORDER_TASK_SECOND_DEAL = "second";

    /**
     * 问题件发送短信的问题件类型开关汉字
     */
    public static final String PROBLEM_SEND_MESSAGE_TYPE = "PROBLEM_SEND_MESSAGE_TYPE";
    /**
     * 问题件发送短信大开关
     */
    public static final String PROBLEM_SEND_MESSAGE_ALL_SWITCH = "PROBLEM_SEND_MESSAGE_ALL_SWITCH";
    /**
     *  问题件发送短信省区开关
     */
    public static final String PROBLEM_SEND_MESSAGE_FINANCE_SWITCH = "PROBLEM_SEND_MESSAGE_FINANCE_SWITCH";

    /**
     * 问题件短信模版
     */
    public static final String SMS_TEMPLATE_PROBLEM =  "problem_notice";

    /**
     * 客服工单问题件模版
     */
    public static final String TEMPLATE_COMPLAINT_REPLY = "complaint_reply";
    /**
     * 客服工单问题件模版
     */
    public static final String TEMPLATE_CUSTOM_CALL = "common_sms";
}
